package com.bee.oa.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.oa.dao.sm.GroupDao;
import com.bee.oa.domain.sm.Group;
import com.bee.oa.service.sm.GroupService;

public class GroupServiceImpl implements GroupService {

	private GroupDao groupDao;

	public void setGroupDao(GroupDao groupDao) {
		this.groupDao = groupDao;
	}

	@Override
	public Serializable save(Group entity) {
		return groupDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Group> entities) {
		groupDao.saveAll(entities);
	}

	@Override
	public Group get(Long sid) {
		return groupDao.get(sid);
	}

	@Override
	public List<Group> find(String queryString, Object... values) {
		return groupDao.find(queryString, values);
	}

	@Override
	public List<Group> find(Group entity) {
		return groupDao.find(entity);
	}

	@Override
	public List<Group> find(Map<String, String> params) {
		return groupDao.find(params);
	}

	@Override
	public List<Group> findAll() {
		return groupDao.findAll();
	}

	@Override
	public void update(Group entity) {
		groupDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Group> entities) {
		groupDao.updateAll(entities);
	}

	@Override
	public void delete(Group entity) {
		groupDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		groupDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Group> entities) {
		groupDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return groupDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return groupDao.page(params, pageNo, pageSize);
	}

}
